﻿<template>
  <div :class = "currentThemeWatch !== 'theme_dark' ? 'main_myTitle' : 'main_myTitle_dark'">
    <i v-show = "currentThemeWatch === 'theme_dark'" class = 'iconfont icon-yingyongpeizhi'></i>{{titleName}}
  </div>
</template>

<script>
export default {
  props: ['titleName'],
  computed: {
    currentThemeWatch: function () {
      return this.$store.state.currentTheme
    }
  }
}
</script>
